package com.tanhua.manage.service;

import com.tanhua.dubbo.api.mongo.FreezeApi;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;


@Service
public class FreezeService {

    @Reference
    private FreezeApi freezeApi;


    public String unfreezeUser(Integer userId, String reasonsForThawing) {
        return freezeApi.unFreezeUser(userId,reasonsForThawing);
    }


    public String freezeUser(Integer userId, Integer freezingTime, Integer freezingRange, String reasonsForFreezing, String frozenRemarks) {
        return freezeApi.freezeUserById(userId,freezingTime,freezingRange,reasonsForFreezing,frozenRemarks);
    }
}
